package com.jsj.bootdemo.controller;


import com.jsj.bootdemo.common.BaseResponse;
import com.jsj.bootdemo.pojo.metadataVo;
import com.jsj.bootdemo.service.metadataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/metadata")
public class metadataController {

    @Autowired
    metadataService metadataService;

    @GetMapping("/findmetadata")
    public BaseResponse departmentAuthority(@RequestParam String companyName){
        List<metadataVo> data = metadataService.departmentAuthority(companyName);
        return BaseResponse.ok(data);
    }
}
